<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>自我介绍</title>
    <style type="text/css">
        .ooo{
            text-align: center;
        }
        .one {
            border-style:dashed;
            width: 290px;
            height: 290px;
            border-color: rgb(0, 0, 0);
            background: url(https://so1.360tres.com/t017efb07575589c17f.jpg) no-repeat center center fixed;
            background-size: 25%;
        }

        body {
            font-family: "微软雅黑";
        }

        body {
            background: url(http://pic.616pic.com/ys_bnew_img/00/04/65/KrArC3QtaS.jpg) no-repeat center center fixed;
            background-size: 100%;
        }

        .all {
            width: 1024px;
            height: 863px;
            margin: 0 auto;

        }

        .list {
            width: 300px;
            padding: 180px 0 0 340px;
            text-align: center;
        }

        p {
            margin-top: 20px;
            text-align: center;
        }
    </style>
</head>

<body>
    <div class="all">
        <form class="list" action="#" method="post">
            <h2 class="ooo">人物介绍</h2>
            <div class="one"></div>
            <p>
                <span>剩蛋男孩：</span>
                <input type="text" id="shoujihao" placeholder="请输入姓名">
            </p>
            <p>
                <span>年龄死亡：</span>
                <input type="text" id="shoujihao" placeholder="请输入死亡年龄">
            </p>
            <span>性别</span>
            <select>
                <option>男</option>
                <option>女</option>
            </select>
            <p>
                <textarea cols="30" rows="5" class="message" id="save" placeholder="输入8个字符"></textarea>
            </p>
            <button onclick="return checkInput();">提交</button>

            <button id="e">重置</button>
            <script type="text/javascript">
                var btn=document.getElementById("e")
                btn.onclick=function(){
                    alert("你敢重置！！！！！！！！！！！！！！！！！！！")
                }
            </script> 
            <script>
                function checkInput() {
                    var wenzikuang = document.getElementById('save').value;
                    if (wenzikuang.length < 8) {
                        alert('至少输入8个字符');
                        return false;
                    } else {
                        alert('提交成功');
                        return true;
                    }
                }
            </script>
        </form>
    </div>
</body>

</html>